/*
 * @author farm
 * 农场
 * @date  2024
 */

package com.farm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableAsync;

import java.net.InetAddress;

/**
 * @author farm
 * 农场
 * @date  2024
 */
@EnableAsync
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan(basePackages = {"com.farm.kaiping.mapper"})
public class FarmApplication {

	public static void main(String[] args) {
		System.setProperty("application.version", "v1.0.1");
		try{
			System.setProperty("server.local.ip", InetAddress.getLocalHost().getHostAddress());
		}catch (Exception e){}
		SpringApplication.run(FarmApplication.class, args);
	}

}
